﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Reflection;
/// <summary>
///DBFactory 的摘要说明
/// </summary>
public class DBFactory
{
    public static DBBase GetConn()
    {
        return (DBBase)Assembly.Load("App_Code").CreateInstance(ConfigGlobal.GetGlobal().DbType.ToString());
    }

    public static IDBSchema GetSchema()
    {
        return (IDBSchema)Assembly.Load("App_Code").CreateInstance(ConfigGlobal.GetGlobal().DbType.ToString()+"Schema");
    }
}
